home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntkb.zip / NTKB.EXE / Q98 / 0 / 80.TXT
Text File  |  1994-01-18  |  6KB  |  119 lines

  1. DOCUMENT:Q98080  14-JAN-1994  [W_NT]
  2. TITLE   :1024 Cylinder Limit and How NT Gets Drive Geometry
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. --------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12.  - Microsoft Windows NT Advanced Server version 3.1
  13. --------------------------------------------------------------------
  14.  
  15. SUMMARY
  16. =======
  17.  
  18. Windows NT can take advantage of hard drives with more than 1024
  19. cylinders if your computer hardware permits. While Windows NT does not
  20. have an internal limit to the number of cylinders it can address,
  21. there are some hardware configurations where Windows NT must contend
  22. with a 10 bit (1024 cylinder) limitation, imposed by the supporting
  23. hardware (the hard drive controller or system BIOS in most cases).
  24.  
  25. The following section describes how the ATDISK driver determines drive
  26. geometry. Other hard disk drivers are not included here, as the 1024
  27. cylinder limitation usually doesn't apply. The other drivers,
  28. including SCSI disk drivers, use absolute block addressing.
  29.  
  30. How the ATDISK Driver Determines Drive Geometry
  31. -----------------------------------------------
  32.  
  33. All hard disk drivers report drive geometry (CHS or number of
  34. cylinders, heads, and sectors per track) so that Windows NT can write
  35. structures in the file system boot sectors, information such as
  36. partition table entries in the MBR (master boot record) and the BPB
  37. (BIOS parameter block). Although Windows NT does not actually use CHS
  38. values in either of these structures, WinDisk and Format
  39. (respectively) must write them so that MS-DOS can understand the disk
  40. structures Windows NT creates.
  41.  
  42. ATDISK supports up to two hard drive controllers and up to two disks
  43. per controller. Drive geometry information is available in the drive
  44. parameter table in the BIOS. The BIOS may consist of more than one
  45. component (system ROM and an option ROM on a disk controller, for
  46. example). The BIOS typically keeps information on the first two disks
  47. in a system.
  48.  
  49. There are a couple of ways to get the geometry information from the
  50. drive parameter tables. The first (which Windows NT does not use
  51. except in a special case noted later) is to read the CMOS locations
  52. defined for computers that contain a drive type for the first and
  53. second disk in the system. A drive type is used as an index into the
  54. drive parameter table to point to an entry that describes disks of
  55. that type. In addition, the BIOS typically keeps two vectors that
  56. point to the two geometry entries for the first two disks as a bit of
  57. housekeeping to keep from having to read CMOS and index into the
  58. table.
  59.  
  60. Because Interrupt 13H uses CHS addressing and only defines 10 bits for
  61. the cylinder count, only 1024 cylinders can be addressed. Because
  62. larger disks may have more than 1024 cylinders, there are several
  63. drive translation algorithms that increase the other two parameters to
  64. reduce the cylinder count. The most common one is called head
  65. doubling. The number of heads are doubled and the number of cylinders
  66. are halved. These translated or logical parameters are called
  67. "apparent geometry." The physical geometry is called "actual
  68. geometry." A drive parameter table has reserved areas for the apparent
  69. geometry. These fields are valid only if the high bit of the vendor
  70. signature is set in the driver parameter table entry. (Compaq and
  71. Ultrastor use this mechanism for describing translation.)
  72.  
  73. On some systems (IBM PS/1s and ValuePoints for example), the drive
  74. parameter table is not available. On these systems, Windows NT relies
  75. on Interrupt 13H function 8H, GetDriveParameter, information
  76. collected during the boot process by NTDETECT.COM (executed by NTLDR).
  77. If this information is available, it is used for both the apparent
  78. and actual parameters.
  79.  
  80. If neither drive parameter tables nor Interrupt 13H information is
  81. available (which is typically the case with disks attached to second
  82. and subsequent controllers), then ATDISK calls the IDENTIFY command to
  83. ask the disk directly what its parameters are. In these cases the
  84. IDENTIFY data is used for both actual and apparent geometry. IDENTIFY
  85. data is the last choice for geometry information, as it describes the
  86. raw disk. Often disk controllers translate parameters; for example,
  87. they might use spare sector pooling (for hot-fixing) or reserve the
  88. last cylinder for diagnostics and configuration information. (Both IBM
  89. and Compaq do this.)
  90.  
  91. Compaq has defined special CMOS locations for the third and fourth
  92. disk in Compaq systems. Although this special code is in Windows NT
  93. drivers, Compaq is the only company known to do this.
  94.  
  95. The Registry contains information describing disks serviced by the
  96. ATDISK driver. The path is as follows:
  97.  
  98.    HKEY_LOCAL_MACHINE\hardware\devicemap\atdisk\<controller#>\<disk#>
  99.  
  100. The vendor identification from the IDENTIFY command, the geometry
  101. parameters, and the apparent and actual geometry are available.
  102.  
  103. Additional reference words: 3.10
  104.  
  105. =============================================================================
  106.  
  107. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  108. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  109. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  110. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  111. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  112. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  113. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  114. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  115. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  116. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  117. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  118.  
  119. Copyright Microsoft Corporation 1994.